<?php
/**
*  User
*/

class user extends models {
	public function __construct(){
			parent::__construct();
			$this->addRelation('departments','users.department_id','department_id',array('name' => 'dep_name'),'INNER');
			$this->addRelation('user_in_position','users.user_id','user_id',array('position_id' => 'position_id'),'LEFT ');
			$this->addRelation('positions','user_in_position.position_id','position_id',array('name' => 'position'),'LEFT ');
	}
}